package edu.gdkm.web.controller;

import edu.gdkm.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ProductController {

    @Autowired
    ProductService productService;

    @RequestMapping("/showProduct")
    public String showProduct(String goodsname, Model model){
        model.addAttribute("result",productService.showProduct(goodsname));
        return "showProduct";
    }

}
